package xin.marcher.module.evaluate.converter;

import org.mapstruct.Mapper;
import xin.marcher.module.evaluate.domain.dto.ItemScoreWeightConfigurationDTO;
import xin.marcher.module.evaluate.domain.entity.ItemScoreWeightConfigurationDO;
import xin.marcher.module.evaluate.domain.request.ItemScoreWeightConfigurationRequest;

import java.util.List;

/**
 * 商品评分权重对象克隆
 */
@Mapper(componentModel = "spring")
public interface ItemScoreWeightConfigurationConverter {
    /**
     * 商品评分权重 request -> do
     *
     * @param request
     * @return
     */
    ItemScoreWeightConfigurationDO requestToEntity(ItemScoreWeightConfigurationRequest request);

    /**
     * 商品评分权重 list do -> dto
     *
     * @param itemScoreWeightConfigurationDOList
     * @return
     */
    List<ItemScoreWeightConfigurationDTO> listEntityToDTO(List<ItemScoreWeightConfigurationDO> itemScoreWeightConfigurationDOList);
}
